﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="PortalMainForm.aspx.cs" Inherits="App_System_PortalMainForm" Title="工作区" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<%@ Import Namespace="Shpm.App.Commons.Utils" %>
<%@ Register TagPrefix="shpm" TagName="SystemMenu" Src="~/System/Tag/SystemMenuTag.ascx" %>
<%@ Register TagPrefix="shpm" TagName="DmpBar" Src ="~/App/System/DispatchMenuPart.ascx" %>
<%@ Register TagPrefix="shpm" TagName="DmwBar" Src ="~/App/System/DispatchWorkPart.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript" event="onload" for="window">
        // redrawCalendarMemo();
    </script>
    <script language="javascript">
        function redrawCalendarMemo() {
            var obj = parseCalendar('CalendarMemo');
            redrawCalendar(obj);
        }
        
        if (document.all)  {
            window.attachEvent("onload", redrawCalendarMemo);
        }
        else {
            window.addEventListener("onload", redrawCalendarMemo, false);
        }
    </script>

    <table border="0" width="100%">
        <tr>
        <td width="50%" valign="top">
            <table class="table_border_line" width="100%" height="196">
                <tr>
                    <td colspan="3" align="left" height="1">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                            <td>
                            <script language="javascript">
                                (new TitleBar('SearchBar', '公告板')).showBar();
                            </script>
                            </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="padding-left: 0px; height:142px; line-height:21px; border-top:0px; border-bottom:0px; border-left:1px;border-right:1px; border-style:solid; border-color:#077485" valign="top">
                        <marquee onmouseout=start() onmouseover=stop() height="140" align="middle" scrollamount="1" scrolldelay="30" direction="up">
                        <table id="tblNotifyMsgBoard" width="400" border="0" cellspacing="0" cellpadding="0">
                        </table>
                        </marquee>
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 16px; border-top:0px; border-bottom:1px; border-left:1px;border-right:0px; border-style:solid; border-color:#077485">
                        <a href="#" onclick="window.open('../Input/NotifyMessageUpdForm.aspx','NotifyMessage','scrollbars,resizable,height=520,width=480')">发布公告... </a>
                    </td>
                    <td style="padding-left: 16px; border-top:0px; border-bottom:1px; border-left:0px;border-right:0px; border-style:solid; border-color:#077485">
                        <br />
                    </td>
                    <td align="right" style="padding-right: 16px; border-top:0px; border-bottom:1px; border-left:0px;border-right:1px; border-style:solid; border-color:#077485">
                        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/App/Input/NotifyMessageSrhForm.aspx">更多...</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </td>

        
        <td valign="top">
            <table class="table_border_line" width="100%" height="196">
                <tr>
                    <td colspan="4" align="left">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                            <td>
                            <script language="javascript">
                                (new TitleBar('SearchBar1', '员工信息')).showBar();
                            </script>                            </td>
                            </tr>
                        </table>                    </td>
                </tr>
                <tr>
                    <td width="0" valign="middle" style="border-top:0px; border-bottom:1px; border-left:1px;border-right:0px; border-style:solid; border-color:#077485">&nbsp;&nbsp;</td>
                    <td width="-1" valign="middle" style="border-top:0px; border-bottom:1px; border-left:0px;border-right:0px; border-style:solid; border-color:#077485"><img src="../Input/PersonPhoto.aspx?ID=<%=this.personId %>" width="99" height="132" /></td>
                    <td valign="top" width="100%" style="padding-left: 16px; line-height:21px; border-top:0px; border-bottom:1px; border-left:0px;border-right:0px; border-style:solid; border-color:#077485"><br>工号: <%=this.employeeId %> <br />
                        姓名: <%=this.employeeName %> <br />
                        职务: <%=this.employeeJob %> <br />                    </td>
                    <td valign="center" style="padding-right: 20px;border-top:0px; border-bottom:1px; border-left:0px;border-right:1px; border-style:solid; border-color:#077485">
                    <div id="calendar" name="calendar"></div>
                    <script language="javascript"  src="../../javascript/calendar.js" type="text/javascript">
                    </script>
                    <script language="javascript"   type="text/javascript" src="../../javascript/Memo.js">
                    </script>
                    <script language="javascript"   type="text/javascript">
	                    var cal = new Calendar('CalendarMemo', document.getElementById('calendar'), new Date());
	                    cal.setObjectEvent(CALENDAR_CHANGE_MONTH,OnChangeMonth);
	                    cal.setObjectEvent(CALENDAR_CLICK_DATE,OnClickDate);
	                    cal.setObjectEvent(CALENDAR_CLICK_HEADER,OnClickHeader);
	                    cal.setObjectEvent(CALENDAR_CLICK_WEEK,OnClickWeek);
                    </script></td>
                </tr>
            </table>
        </td>
        </tr>
    </table>
    
    <table width="100%">
    <tr>
    <td style="width:50%; height: 188px;" valign="top">
    <shpm:DmpBar runat="server" ID="DmpBar" />
    </td>
    <td style="HEIGHT: 188px" valign="top">
        <table class="table_border_line" width="100%">
                <tr>
                    <td colspan="3" align="left">
                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                <td>
                                    <script language="javascript">
                                        (new TitleBar('SearchBar3', '个人消息')).showBar();
                                    </script>
                                </td>
                                </tr>
                            </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="padding-left: 16px; height:226px; line-height:21px; border-top:0px; border-bottom:0px; border-left:1px;border-right:1px; border-style:solid; border-color:#077485" valign="top">
                        <div id="msgBoard" style="font-family: 宋体">
                            <table id="tblMsgBoard">                            
                            </table>
                        </div></td>
                </tr>
                <tr style="font-family: 宋体">
                    <td style="padding-left: 16px; border-top:0px; border-bottom:1px; border-left:1px;border-right:0px; border-style:solid; border-color:#077485">
                        <asp:LinkButton ID="LinkButton14" runat="server" Text="物资申领" PostBackUrl="~/App/Master/MaterialRequisitionForm.aspx" />｜                        
                        <asp:LinkButton ID="LinkButton2" runat="server" Text="请假单" PostBackUrl="~/App/Input/PersonLeaveSrhForm.aspx" />｜
                        <asp:LinkButton ID="LinkButton4" runat="server" Text="加班单" PostBackUrl="~/App/Input/PersonOvertimeSrhForm.aspx" />｜
                        <asp:LinkButton ID="LinkButton5" runat="server" Text="职员订餐" PostBackUrl="~/App/Input/EmployeeDinnerSrhForm.aspx" />｜                        
                        <asp:LinkButton ID="LinkButton6" runat="server" Text="培训申请" PostBackUrl="~/App/Input/PersonTrainSrhForm.aspx" />｜                        

                        <a href="#" onclick="window.open('../Input/MessageUpdForm.aspx','PrivateMessage','scrollbars,resizable,height=550px,width=550px')">发送消息... </a>
                    </td>
                    <td style="border-top:0px; border-bottom:1px; border-left:0px;border-right:0px; border-style:solid; border-color:#077485">
                        <br />
                    </td>
                    <td align="right" style="padding-right: 16px; border-top:0px; border-bottom:1px; border-left:0px;border-right:1px; border-style:solid; border-color:#077485">
                        <asp:LinkButton ID="LinkButton3" runat="server" Text="更多..." PostBackUrl="~/App/Input/MessageSrhForm.aspx" />&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                </tr>
            </table> 
    </td>
    </tr>
    </table>
    <shpm:DmwBar runat="server" ID="DmwBar" />
</asp:Content>

